﻿using System.Collections.Generic;
using System.Windows.Forms;
using System.Windows.Forms.Extensions.Model;

namespace ShutterNotifyerTestApplication.Forms
{
    public partial class AdvancedForm : Form
    {
        public AdvancedForm()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, System.EventArgs e)
        {
            shutterNotifier1.In("Click OK to hide this message.",
                                new List<WarningItem> 
                                {
                                    new WarningItem("First name is required", txtFN), 
                                    new WarningItem("Last name is required", txtLN) 
                                });
        }

        private void button2_Click(object sender, System.EventArgs e)
        {
            shutterNotifier2.In("Try to fill it, please", "Really.");
        }

    }
}
